module.exports = {
    userFormatError: {
        code: '10001',
        message: '用户名或密码为空',
        result: '',
    },
    userAlreadyExisted: {
        code: '10002',
        message: '用户已经存在',
        result: ''
    },
    userRegisterError: {
        code: '10003',
        message: '用户注册失败！',
        result: ''
    },
    userDoesNotExisted: {
        code: '10004',
        message: '用户名不存在！',
        result: ''
    },
    userLoginError: {
        code: '10005',
        message: '用户名登录失败！',
        result: ''
    },
    invalidPassword: {
        code: '10006',
        message: '密码不匹配！',
        result: ''
    },
    tokenExpiredError: {
        code: '10101',
        message: 'token过期',
        result: ''
    },
    invalidToken: {
        code: '10102',
        message: '无效的token',
        result: ''
    },
    updatePasswordError: {
        code: '10007',
        message: '修改密码失败',
        result: ''
    },
    hasNotAdminPermission: {
        code: '10103',
        message: '用户没有管理权限',
        result: ''
    },
    fileUploadError: {
        code: 10008,
        message: '文件上传失败',
        result: ''
    },
    unSupportedFileType: {
        code: 10201,
        message: '上传文件类型不匹配',
        result: ''
    },
    goodsFormatError: {
        code: 10202,
        message: '商品上传参数错误！',
        result: ''
    },
    publishGoodsError: {
        code: 10203,
        message: '发布商品失败',
        result: ''
    },
    invalidGoodsID: {
        code: 10204,
        message: '商品id不存在',
        result: '',
    },
    invalidGoodsInfo: {
        code: 10205,
        message: '商品列表获取失败',
        result: '',
    },
}